package Year2021.month10.Day21.Day25;

public class Fighter extends Airplane {
    public Fighter(String name,double weight, double height) {
        super(name,weight, height);
    }
    //发射导弹;
    public void launchMissile(){
        System.out.println(name+"在飞行过程中遇到敌人还可以发射导弹！");
    }
    //低空盘旋;
    public void hoverLow(){
        System.out.println(name+"在空中还可以低空盘旋！");
    }

    @Override
    public void takeOff(Airplane airplane) {
        show();
        super.takeOff(airplane);
    }
}
